import assign from 'object-assign';
import {observable, useStrict, action, runInAction} from 'mobx';
import {browserHistory} from 'react-router';
import lyby from '../util';

let loginUserData = lyby.loginUser.getData();

class UserStore {
    @observable active = '';
    @observable login = loginUserData.login;
    @observable user = loginUserData.common?loginUserData.common.user:{};
    @observable VCG_info = loginUserData;

    @action changeActive(param) {
        this.active = param || '';
    }

}
const User = new UserStore();
export default User;
